// 报表模块管理
import request from '@/utils/axios'
import {
  URL_API
} from '@/utils/mUtils'
const base = URL_API()

// 报表模块管理
// 网点业务汇总表列表展示
export function getWebsiteWorkList(params) {
  return request({
    url: `${base}/api/report_form/business/website/summary`,
    method: 'post',
    data: params,
  
  })
}

// 网点业务月报表列表展示
export function getWebsiteWorkMonthlyList(params) {
  return request({
    url: `${base}/api/report_form/business/website/monthly`,
    method: 'post',
    data: params,
  
  })
}


// 网点业务明细列表展示
export function getWebsiteWorkDetailList(params) {
  return request({
    url: `${base}/api/report_form/business/website/detail`,
    method: 'post',
    data: params,
  
  })
}


// 车辆业务汇总表列表
export function getVehicleWorkList(params) {
  return request({
    url: `${base}/api/report_form/business/vehicle/summary`,
    method: 'post',
    data: params,
  
  })
}

// 车辆业务月报表列表
export function getVehicleWorkMonthlyList(params) {
  return request({
    url: `${base}/api/report_form/business/vehicle/monthly`,
    method: 'post',
    data: params,
  
  })
}

// 车辆业务明细列表
export function getVehicleWorkDetailList(params) {
  return request({
    url: `${base}/api/report_form/business/vehicle/detail`,
    method: 'post',
    data: params,
  
  })
}

//获取员工/经办人列表
export function reqStaffList(params) {
  return request({
    url: `${base}/api/company/organizational/employee/box`,
    method: 'post',
    data: params,
  
  })
}


//员工业绩汇总表列表
export function getStaffWorkList(params) {
  return request({
    url: `${base}/api/report_form/achievement/staff/summary`,
    method: 'post',
    data: params,
  
  })
}

//员工业绩月报表列表
export function getStaffWorkMonthlyList(params) {
  return request({
    url: `${base}/api/report_form/achievement/staff/monthly`,
    method: 'post',
    data: params,
  
  })
}

// 员工业绩明细列表
export function getStaffWorkDetailList(params) {
  return request({
    url: `${base}/api/report_form/achievement/staff/detail`,
    method: 'post',
    data: params,
  
  })
}
// 报表名称下拉
export function CustomChartOption(params) {
  return request({
    url: `${base}/api/custom/chart/option`,
    method: 'post',
    data: params,
  })
}
// 子报表名称下拉
export function CustomSubChartOption(params) {
  return request({
    url: `${base}/api/custom/sub/chart/option`,
    method: 'post',
    data: params,
  })
}
// 子报表
export function CustomSubChartShow(params) {
  return request({
    url: `${base}/api/custom/sub/chart/show`,
    method: 'post',
    data: params,
  })
}
// 子报表
export function CustomSubChartExport(params) {
  return request({
    url: `${base}/api/custom/sub/chart/export`,
    method: 'post',
    data: params,
  })
}
// 客户收入统计

export function AnalysisCustomer(params) {
  return request({
    url: `${base}/api/finance/analysis/customer/income`,
    method: 'post',
    data: params,
  })
}
// 流失客户预警
export function AnalysisCustomerLoss(params) {
  return request({
    url: `${base}/api/finance/analysis/customer/loss`,
    method: 'post',
    data: params,
  })
}
// 客户收入统计导出
export function AnalysisCustomerExport(params) {
  return request({
    url: `${base}/api/finance/analysis/customer/income/export`,
    method: 'post',
    data: params,
  })
}
// 区域发货未开票
export function analysisareashipment_not_invoiced(params) {
  return request({
    url: `${base}/api/finance/analysis/area/shipment_not_invoiced`,
    method: 'post',
    data: params,
  })
}
// 区域发货未开票导出
export function analysisareashipment_not_invoiced_export(params) {
  return request({
    url: `${base}/api/finance/analysis/area/shipment_not_invoiced/export`,
    method: 'post',
    data: params,
  })
}
// 区域开票未收款
export function analysisareainvoice_unpaid(params) {
  return request({
    url: `${base}/api/finance/analysis/area/invoice_unpaid`,
    method: 'post',
    data: params,
  })
}
// 区域开票未收款导出
export function analysisareainvoice_unpaid_export(params) {
  return request({
    url: `${base}/api/finance/analysis/area/invoice_unpaid/export`,
    method: 'post',
    data: params,
  })
}
//销售发货未开票
export function analysisareshipment_not_invoiced(params) {
  return request({
    url: `${base}/api/finance/analysis/sale/shipment_not_invoiced`,
    method: 'post',
    data: params,
  })
}
//销售发货未开票导出
export function analysisareshipment_not_invoiced_export(params) {
  return request({
    url: `${base}/api/finance/analysis/sale/shipment_not_invoiced/export`,
    method: 'post',
    data: params,
  })
}
//销售开票未收款
export function analysisareinvoice_unpaid(params) {
  return request({
    url: `${base}/api/finance/analysis/sale/invoice_unpaid`,
    method: 'post',
    data: params,
  })
}
//销售开票未收款导出
export function analysisareinvoice_unpaid_export(params) {
  return request({
    url: `${base}/api/finance/analysis/sale/invoice_unpaid/export`,
    method: 'post',
    data: params,
  })
}
//客户发货未开票
export function analysisarecustomeshipment_not_invoicedr(params) {
  return request({
    url: `${base}/api/finance/analysis/customer/shipment_not_invoiced`,
    method: 'post',
    data: params,
  })
}
//客户发货未开票导出
export function analysisarecustomeshipment_not_invoicedr_export(params) {
  return request({
    url: `${base}/api/finance/analysis/customer/shipment_not_invoiced/export`,
    method: 'post',
    data: params,
  })
}
//客户发货未开票
export function analysisarecustomeinvoice_unpaid(params) {
  return request({
    url: `${base}/api/finance/analysis/customer/invoice_unpaid`,
    method: 'post',
    data: params,
  })
}
//客户发货未开票导出
export function analysisarecustomeinvoice_unpaid_export(params) {
  return request({
    url: `${base}/api/finance/analysis/customer/invoice_unpaid/export`,
    method: 'post',
    data: params,
  })
}
// 区域发货数据统计
export function analysis_shipment_data_statistics(params) {
  return request({
    url: `${base}/api/sale/analysis/shipment_data_statistics`,
    method: 'post',
    data: params,
  })
}
// 区域产品类型数据统计
export function analysis_transport_type_data_statistics(params) {
  return request({
    url: `${base}/api/sale/analysis/transport_type_data_statistics`,
    method: 'post',
    data: params,
  })
}
// 区域产品类型数据统计
export function analysis_area_assignment(params) {
  return request({
    url: `${base}/api/sale/analysis/area_assignment`,
    method: 'post',
    data: params,
  })
}
//销售任务进度
export function analysis_sale_assignment(params) {
  return request({
    url: `${base}/api/sale/analysis/sale_assignment`,
    method: 'post',
    data: params,
  })
}
// 区域发货数据导出
export function shipment_data_statistics_export(params) {
  return request({
    url: `${base}/api/sale/analysis/shipment_data_statistics/export`,
    method: 'post',
    data: params,
  })
}
// 区域发货数据导出
export function area_assignment_exprot(params) {
  return request({
    url: `${base}/api/sale/analysis/area_assignment/export`,
    method: 'post',
    data: params,
  })
}
// 区域发货数据导出
export function sale_assignment_export(params) {
  return request({
    url: `${base}/api/sale/analysis/sale_assignment/export`,
    method: 'post',
    data: params,
  })
}
// 销售kpi 列表
export function sale_task_list(params) {
  return request({
    url: `${base}/api/sale_task/list`,
    method: 'post',
    data: params,
  })
}
// 销售kpi 列表
export function sale_task_detail(params) {
  return request({
    url: `${base}/api/sale_task/detail`,
    method: 'post',
    data: params,
  })
}
// 销售kpi 列表
export function sale_task_update(params) {
  return request({
    url: `${base}/api/sale_task/update`,
    method: 'post',
    data: params,
  })
}
// 销售kpi 列表
export function sale_task_create(params) {
  return request({
    url: `${base}/api/sale_task/create`,
    method: 'post',
    data: params,
  })
}
// 销售kpi 列表
export function sale_task_import(params) {
  return request({
    url: `${base}/api/sale_task/import`,
    method: 'post',
    data: params,
  })
}
// 区域开票未回款
export function analysis_invoiced_area(params) {
  return request({
    url: `${base}/api/sale/analysis/invoiced_area`,
    method: 'post',
    data: params,
  })
}
// 区域开票未回款导出
export function analysis_invoiced_area_export(params) {
  return request({
    url: `${base}/api/sale/analysis/invoiced_area/export`,
    method: 'post',
    data: params,
  })
}
// 区域客户未回款
export function analysis_invoiced_customer(params) {
  return request({
    url: `${base}/api/sale/analysis/invoiced_customer`,
    method: 'post',
    data: params,
  })
}
// 区域客户未回款
export function analysis_invoiced_customer_export(params) {
  return request({
    url: `${base}/api/sale/analysis/invoiced_customer/export`,
    method: 'post',
    data: params,
  })
}
// 区域发货未开票
export function analysis_ship_not_invoice_area(params) {
  return request({
    url: `${base}/api/sale/analysis/ship_not_invoice_area`,
    method: 'post',
    data: params,
  })
}
// 区域发货未开票导出
export function analysis_ship_not_invoice_area_export(params) {
  return request({
    url: `${base}/api/sale/analysis/ship_not_invoice_area/export`,
    method: 'post',
    data: params,
  })
}
// 区域客户发货未开票
export function analysis_ship_not_invoice_customer(params) {
  return request({
    url: `${base}/api/sale/analysis/ship_not_invoice_customer`,
    method: 'post',
    data: params,
  })
}
// 区域客户发货未开票导出
export function analysis_ship_not_invoice_customer_export(params) {
  return request({
    url: `${base}/api/sale/analysis/ship_not_invoice_customer/export`,
    method: 'post',
    data: params,
  })
}
// 发货未开票具体运单
export function analysis_ship_not_invoice_detail(params) {
  return request({
    url: `${base}/api/sale/analysis/ship_not_invoice_detail`,
    method: 'post',
    data: params,
  })
}
// 发货未开票具体运单导出
export function analysis_ship_not_invoice_detail_export(params) {
  return request({
    url: `${base}/api/sale/analysis/ship_not_invoice_detail/export`,
    method: 'post',
    data: params,
  })
}

// 客户超期未对账
export function aoperate_report_customer_unreconciled(params) {
  return request({
    url: `${base}/api/operate_report/customer_unreconciled`,
    method: 'post',
    data: params,
  })
}
// 客户超期未开票
export function aoperate_report_customer_un_invoiced(params) {
  return request({
    url: `${base}/api/operate_report/customer_un_invoiced`,
    method: 'post',
    data: params,
  })
}
// 承运商未对账
export function operate_report_carrier_unreconciled(params) {
  return request({
    url: `${base}/api/operate_report/carrier_unreconciled`,
    method: 'post',
    data: params,
  })
}
// 承运商未报销
export function aoperate_report_carrier_un_reimbursed(params) {
  return request({
    url: `${base}/api/operate_report/carrier_un_reimbursed`,
    method: 'post',
    data: params,
  })
}
// 运单收入低于预期
export function operate_report_income_low(params) {
  return request({
    url: `${base}/api/operate_report/income_low`,
    method: 'post',
    data: params,
  })
}
// 运单成本大于收入
export function operate_report_income_less_than_cost(params) {
  return request({
    url: `${base}/api/operate_report/income_less_than_cost`,
    method: 'post',
    data: params,
  })
}
// 客户超期未对账导出
export function customer_unreconciled_export(params) {
  return request({
    url: `${base}/api/operate_report/customer_unreconciled/export`,
    method: 'post',
    data: params,
  })
}
// 客户对账未开票导出
export function customer_un_invoiced_export(params) {
  return request({
    url: `${base}/api/operate_report/customer_un_invoiced/export`,
    method: 'post',
    data: params,
  })
}
// 承运商未对账导出
export function carrier_unreconciled_export(params) {
  return request({
    url: `${base}/api/operate_report/carrier_unreconciled/export`,
    method: 'post',
    data: params,
  })
}
// 承运商未报销导出
export function carrier_un_reimbursed_export(params) {
  return request({
    url: `${base}/api/operate_report/carrier_un_reimbursed/export`,
    method: 'post',
    data: params,
  })
}
//运单收入低于预期导出
export function income_low_export(params) {
  return request({
    url: `${base}/api/operate_report/income_low/export`,
    method: 'post',
    data: params,
  })
}
// 运单成本大于收入导出
export function income_less_than_cost_export(params) {
  return request({
    url: `${base}/api/operate_report/income_less_than_cost/export`,
    method: 'post',
    data: params,
  })
}